package com.ruoyi.erp.domain.bo;

import com.ruoyi.common.annotation.query.*;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.List;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 往来单位业务对象 base_relate_unit
 *
 * @author chenyun
 * @date 2022-03-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("往来单位业务对象")
public class RelateUnitBo extends BaseEntity {

    /**
     * 编号
     */
    @EQ
    @ApiModelProperty(value = "编号", required = true)
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属机构
     */
    @EQ
    @ApiModelProperty(value = "所属机构", required = true)
    @NotNull(message = "所属机构不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orgId;

    /**
     * 编码
     */
    @EQ
    @ApiModelProperty(value = "编码", required = true)
    @NotBlank(message = "编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String relateUnitCode;

    /**
     * 名称
     */
    @LikeRight
    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String relateUnitName;

    /**
     * 简称
     */
    @LikeRight
    @ApiModelProperty(value = "简称", required = true)
    @NotBlank(message = "简称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String relateUnitSimpName;

    /**
     * 地区
     */
    @EQ
    @ApiModelProperty(value = "地区", required = true)
    @NotNull(message = "地区不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long districtId;

    /**
     * 行业类型
     */
    @EQ
    @ApiModelProperty(value = "行业类型")
    private String trade;

    /**
     * 地址
     */
    @EQ
    @ApiModelProperty(value = "地址")
    private String address;

    /**
     * 邮编
     */
    @EQ
    @ApiModelProperty(value = "邮编")
    private String postCode;

    /**
     * 注册号
     */
    @EQ
    @ApiModelProperty(value = "注册号")
    private String regCode;

    /**
     * 法人
     */
    @EQ
    @ApiModelProperty(value = "法人")
    private String corporation;

    /**
     * 传真
     */
    @EQ
    @ApiModelProperty(value = "传真")
    private String fax;

    /**
     * 邮件
     */
    @EQ
    @ApiModelProperty(value = "邮件")
    private String email;

    /**
     * 电话
     */
    @EQ
    @ApiModelProperty(value = "电话")
    private String phone;

    /**
     * 状态
     */
    @EQ
    @ApiModelProperty(value = "状态", required = true)
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @EQ
    @ApiModelProperty(value = "备注")
    private String remark;


}
